/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-03-14
 * Time: 17:10
 */
public class test3 {
    public static void bubi(int[] arr){
        for (int i = 0; i <arr.length ; i++) {
            for (int j =0; j <arr.length- i-1 ; j++) {
                if(arr[j] > arr[j+1]){
                   int tmp = arr[j];
                   arr[j] = arr[j+1];
                   arr[j+1] = tmp;
                }
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
    public static void main(String[] args) {
        int[] arr = {25,24,12,76,101,86,28};
        bubi(arr);

    }
}
